package com.shop.shoppingmall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户表(ShUser)实体类
 *
 * @author makejava
 * @since 2020-09-05 15:25:57
 */
public class ShUser implements Serializable {
    private static final long serialVersionUID = 855878349812614233L;
    /**
     * 主键
     */
    private String id;
    /**
     * 登录账号
     */
    private String loginName;
    /**
     * 登录密码
     */
    private String passWord;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 昵称
     */
    private String userName;
    /**
     * 真实姓名
     */
    private String realName;
    /**
     * 用户头像
     */
    private String userPhoto;
    /**
     * 生日
     */
    private String birthday;
    /**
     * 性别
     */
    private String sex;
    /**
     * vip状态（0 未交费 1 已缴费）
     */
    private String vipState;
    /**
     * 实名状态（0 未实名  1 已实名）
     */
    private String checkState;
    /**
     * 邀请码
     */
    private String invitCode;
    /**
     * 上级邀请码
     */
    private String superiorCode;
    /**
     * md5密码盐
     */
    private String salt;
    /**
     * 账号状态(0-正常,1-冻结)
     */
    private String status;
    /**
     * 删除状态(0-正常,1-已删除)
     */
    private String delFlag;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date creatTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date updateTime;

    /**
     * 实名认证的数量
     */
    private Integer statusCount;

    /**
     * 用户注册的数量
     */
    private Integer userCount;

    /**
     * 关注商品的人数
     */
    private String isCountProduct;
    /**
     * 关注商铺的人数
     */
    private String isCountShop;

    private String isCountHistory;

    private Integer pagenum;
    private Integer pagesize;
    private Integer total;

    private String loName;

    private Integer sums;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getVipState() {
        return vipState;
    }

    public void setVipState(String vipState) {
        this.vipState = vipState;
    }

    public String getCheckState() {
        return checkState;
    }

    public void setCheckState(String checkState) {
        this.checkState = checkState;
    }

    public String getInvitCode() {
        return invitCode;
    }

    public void setInvitCode(String invitCode) {
        this.invitCode = invitCode;
    }

    public String getSuperiorCode() {
        return superiorCode;
    }

    public void setSuperiorCode(String superiorCode) {
        this.superiorCode = superiorCode;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatusCount() {
        return statusCount;
    }

    public void setStatusCount(Integer statusCount) {
        this.statusCount = statusCount;
    }

    public Integer getUserCount() {
        return userCount;
    }

    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }

    public String getIsCountProduct() {
        if("".equals(isCountProduct)||isCountProduct==null){
            return "0";//去除该属性的前后空格并进行非空非null判断
        }
        return isCountProduct;
    }

    public void setIsCountProduct(String isCountProduct) {
        this.isCountProduct = isCountProduct == null ? null : isCountProduct.trim();
    }

    public String getIsCountShop() {
        if("".equals(isCountShop)||isCountShop==null){
            return "0";//去除该属性的前后空格并进行非空非null判断
        }
        return isCountShop;
    }

    public void setIsCountShop(String isCountShop) {
        this.isCountShop = isCountShop == null ? null : isCountShop.trim();
    }

    public String getIsCountHistory() {
        if("".equals(isCountHistory)||isCountHistory==null){
            return "0";//去除该属性的前后空格并进行非空非null判断
        }
        return isCountHistory;
    }

    public void setIsCountHistory(String isCountHistory) {
        this.isCountHistory = isCountHistory == null ? null : isCountHistory.trim();
    }

    public Integer getPagenum() {
        return pagenum;
    }

    public void setPagenum(Integer pagenum) {
        this.pagenum = pagenum;
    }

    public Integer getPagesize() {
        return pagesize;
    }

    public void setPagesize(Integer pagesize) {
        this.pagesize = pagesize;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getLoName() {
        return loName;
    }

    public void setLoName(String loName) {
        this.loName = loName;
    }

    public Integer getSums() {
        return sums;
    }

    public void setSums(Integer sums) {
        this.sums = sums;
    }
}
